package com.neepu.serviceImpl;

import com.neepu.dao.PageViewMapper;
import com.neepu.pojo.PageView;
import com.neepu.service.PageViewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("PageViewService")
public class PageViewServiceImpl implements PageViewService {

    @Autowired
    private PageViewMapper pageViewMapper;

    @Override
    public PageView getPageView() {
        return pageViewMapper.getPageView();
    }

    @Override
    public void addPageView(int view) {
        pageViewMapper.addPageView(view);
    }
}
